import uvicorn
from fastapi import FastAPI
from routers.api import api_router


app = FastAPI()
app.include_router(api_router, prefix="/api")


@app.get('/')
async def welcome() -> dict:
    return {"message": "Welcome to my niua-blog"}


if __name__ == "__main__":
    uvicorn.run(app, host="127.0.0.1", port=8081)
